#!/usr/bin/python
# -*- coding: UTF-8 -*-
# from django.urls import path
#
# from . import views
#
# urlpatterns = [
#     path('', views.hello, name='hello'),
# ]
#
from django.conf.urls import url
from django.urls import path
from app_demo.views import *
from app_demo.search import search_form, search
from app_demo.adduser import adduser
from app_demo.checkuser import checkuser
from django.views.decorators.cache import cache_page

# namespace
app_name = 'app_demo'

urlpatterns = [
    url(r'^hello/$', hello),
    url(r'^search-form/$', search_form),
    url(r'^search/$', search),
    path("login/", login, name="login"),
    path('old/', old, name='old_page'),
    path('new/', new, name="new_page"),
    path('index/', cache_page(timeout=10, cache='default', key_prefix='mysiteURL6')(index), name="index"),
    path('adduser/', adduser, name='adduser'),
    path('checkuser/', checkuser, name='checkuser'),
]
